@csrf
<div class="layui-form-item">
    <label for="parent_id" class="layui-form-label">上级</label>
    <div class="layui-input-block">
        <input type="text" id="parent_id" name="parent_id" lay-filter="parent_id" class="layui-input"
            value="{{$dataitem->parent_id??''}}">
    </div>
</div>
<div class="layui-form-item">
    <label for="item_name" class="layui-form-label">名称</label>
    <div class="layui-input-block">
        <input type="text" name="item_name" class="layui-input" value="{{$dataitem->item_name??''}}">
    </div>
</div>
<div class="layui-form-item">
    <label for="item_code" class="layui-form-label">编号</label>
    <div class="layui-input-block">
        <input type="text" name="item_code" class="layui-input" value="{{$dataitem->item_code??''}}">
    </div>
</div>
<div class="layui-form-item">
    <label for="is_show" class="layui-form-label">是否在数据字典显示</label>
    <div class="layui-input-block">
        <input type="hidden" name="is_show" value="0">
        <input type="checkbox" lay-skin="switch" name="is_show" class="layui-input" value="1"
            {{$dataitem->is_show=='1'?'checked':''}}>
    </div>
</div>
<div class="layui-form-item">
    <label for="sort_code" class="layui-form-label">排序</label>
    <div class="layui-input-block">
        <input type="text" name="sort_code" class="layui-input" value="{{$dataitem->sort_code??''}}">
    </div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label"></label>
    <div class="layui-input-block">
        <input type="hidden" name="is_tree" value="0">
        <input type="hidden" name="status" value="0">
        <input type="checkbox" name="is_tree" lay-skin="primary" value="1" {{$dataitem->is_tree=='1'?'checked':''}}
            title="树形">
        <input type="checkbox" name="status" lay-skin="primary" value="1" {{$dataitem->status=='1'?'checked':''}}
            title="有效">
    </div>
</div>
<div class="layui-form-item">
    <label for="description" class="layui-form-label">备注</label>
    <div class="layui-input-block">
        <textarea name="description" class="layui-textarea">
            {{$dataitem->discription??''}}
        </textarea>
    </div>
</div>
